<html>
<head>
    <meta charset="utf-8">
    <title></title>
</head>
<style>
    body {
        background-image: url("../第八周/WOW.jpg");
    }

    table {
        color: #78fcff;
        margin: 0 auto;
    }
    h3{
        color: #00ee00;
    }
    div{
        text-align: center;
    }
   td{
       border: 1px solid #00ee00;
   }
</style>
<body>
<div>
    <?php
    echo "<h3>正三角</h3>";
    echo "<table>";
    for ($i = 1; $i <= 9; $i++) {
        echo "<tr>";
        for ($j = 1; $j <= $i; $j++) {
            echo "<td>" . $j . "&times;" . $i . '=' . $i * $j . '</td>';

        }
        echo "</tr>";
    }
    echo "</table>";
    echo "<hr>";
    echo "<h3>倒三角</h3>";
    echo "<table>";
    for ($i = 1; $i <= 9; $i++) {
        echo "<tr>";
        for ($j = $i; $j <= 9; $j++) {
            echo "<td>" . $j . "&times;" . $i . '=' . $i * $j . '</td>';

        }
        echo "</td>";
    }
    echo "</table>";
    ?>

</div>
</body>
</html>
